{{#if global_curStatus.isMobile}}
    {{#if global_curStatus.isPad}}
    {{#ui/mobile/inner-tabbar menus=tabFuncs switchTab="switchTab" itemXs="col-xs-6" clickActFlag=clickActFlag}}
    {{/ui/mobile/inner-tabbar}}
    <div id="taskSquareContainer" class="mainContent">
      <div class="wrapperInner top40">
        {{#if (eq curTabCode 'todayTask')}}
        {{#each todayTaskList  as |task|}}
        {{#callbusi/mobile/list-task-item itemId=task.id icon=task.icon
            nameTest=task.nameTest label=task.label text1=task.text1 text2=task.text2 text3=task.text3 text4=task.text4
            panMoveProcAction="panMoveProcAction" outerClass="ipad-list"}}
        {{/callbusi/mobile/list-task-item}}
        {{/each}}
        {{/if}}
        {{#if (eq curTabCode 'finished')}}
        {{#each finishedTaskList as |task|}}
        {{log 'task finished' task}}
        {{#callbusi/mobile/list-task-item itemId=task.id icon=task.icon
            nameTest=task.nameTest label=task.label text1=task.text1 text2=task.text2 text3=task.text3 text4=task.text4
            outerClass="ipad-list"}}
        {{/callbusi/mobile/list-task-item}}
        {{/each}}
        {{/if}}
      </div>
    </div>
    {{else}}
      {{#ui/mobile/inner-tabbar menus=tabFuncs switchTab="switchTab" clickActFlag=clickActFlag itemXs="col-xs-6" positionClass="abs-top-44" theme="block-mode"}}
      {{/ui/mobile/inner-tabbar}}
      <div id="taskSquareContainer" class="mainContent">
        <!--按时间或按人排序icon-->
        {{#unless (eq curTabCode 'finished')}}
          {{ui/mobile/hor-switcher defData=switcherDef switchAction="switchDataMode"
           class="hor-switcher"}}
        {{/unless}}
        <div class="wrapperInner top40">
          {{#if (eq curTabCode 'todayTask')}}
            {{#if (eq dataType 'task')}}
            {{#each serviceList  as |task|}}
            {{#callbusi/mobile/list-task-item item=task type=1
                finish="finish" outerClass="col-sm-6 col-xs-12"}}
            {{/callbusi/mobile/list-task-item}}
            {{/each}}
            {{else}}
            {{#each serviceCustomerList  as |task|}}
            {{#callbusi/mobile/list-task-item item=task type=2
                finish="finish" outerClass="col-sm-6 col-xs-12"}}
            {{/callbusi/mobile/list-task-item}}
            {{/each}}
          {{/if}}
          {{/if}}
          {{#if (eq curTabCode 'finished')}}
          <div class="timesCount">
            {{#each countList  as |customer|}}
            <div class="item">
              <div class="title clearfix top2">
                <div class="pull-left">
                  {{customer.name}}<span class="light-text-color">|</span>{{customer.room}}
                </div>
                <div class="pull-right right8">{{customer.staffName}}</div>
              </div>
              <div class="clearfix font16">
                  {{#each customer.services  as |service|}}
                  {{#ui/mobile/expandable-item-line itemName=service.title detail=service.detailList
                    itemCount=service.cnt itemId=service.busiId itemExpand="countItemExpand"
                    itemCntAdd="itemCntAdd" expanded=service.expanded serviceItem=service}}
                  {{/ui/mobile/expandable-item-line}}
                  {{/each}}
              </div>
            </div>
            {{/each}}
          </div>

          <!-- {{#each finishedTaskList as |task|}}
          {{log 'task finished' task}}
          {{#callbusi/mobile/list-task-item itemId=task.id icon=task.icon
              title=task.title roomName=task.roomName room=task.room label=task.label text1=task.text1 text2=task.text2 text3=task.text3 text4=task.text4 txt1=task.txt1
            }}
          {{/callbusi/mobile/list-task-item}}
          {{/each}}
          {{/if}} -->
        </div>
      </div>
    {{/if}}
{{else}}

{{/if}}
{{ui/container/infinite-scroll moniteData="taskList" didUpdateAction="didUpdate" didInsertElementAction="didInsertElement"}}
